<style>
	@import url('./quickeye.css');
</style>
<template>
	<!-- 公共头部 -->
	<!-- <view> <my-header :title="'快眼扫描'"></my-header></view> -->

	<!-- 快眼扫描 -->

	<view class="content">
		<view  v-if="iffirststart!=1">
			<view class="headertop">
				<view>
					<text>正确{{sucesswtopic}}</text><text>错误{{errorwtopic}}</text>
				</view>
			</view>
			<view class="projectexercisestwo_top_b" v-show="ifcountdown"><text> 倒计时：<text
						class="time">{{seconds}}</text></text></view>

			<view class="body">
				<uni-transition ref="ani" class="ifshwoa" :mode-class="modeClass" duration='0' :show="upishow">
					<view class="list" v-if="questions.length>0">
						<text v-for="(item,index) in questions">{{item}}</text>
					</view>
				</uni-transition>

				<uni-transition ref="ani" :mode-class="modeClass" duration='0' :show="downishow">
					<view class="list" v-for="(item,index) in answer" :class="index==selectedindex?clickStyles:''">
						<view @touchstart="clickhandle(item,index)"><text v-for="(v,i) in item">{{v}}</text></view>
					</view>
				</uni-transition>
			</view>
		</view>
		<view class="start" v-if="iffirststart==1">
			<view class="gramestart" @click="beginsubject()">开始答题</view>
		</view>

		<!-- 闯关结果 -->
		<!-- 遮罩 -->
		<view v-show="ifpass" class="masking"></view>
		<view class="passTheResult" v-show="ifpass">
			<view class="passTheResultlevel">
				<view class="type-color">闯关结果</view>
				<view><text>得分：</text>{{totalscore}}分</view>
				<!-- 关卡 -->
				<view class="level" v-for="(item,index) in btna" @click="clickList(index)">
					<view class="text">{{item}}</view>
				</view>
			</view>
		</view>
	</view>


</template>
<script type="module" src="./quickeye.js"></script>